﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SwenAssignment3.Classes;

namespace SwenAssignment3.ReportingModule
{
    public partial class Listallguestthatareintherooms : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Buttonsearch_Click(object sender, EventArgs e)
        {
            string search = TextBox1.Text;
            Listallguestthatareintheroom h = DRHotelDBManager.getAllguest(search);
            lblFirst.Text = h.FirstName;
            lblLast.Text = h.LastName;
            lblCheckIn.Text = Convert.ToString(h.CheckInDateTime);
            lbCheckOut.Text = Convert.ToString(h.DesiredCheckOutDateTime);
            lblAdults.Text = Convert.ToString(h.NoOfAdults);
            lblChildren.Text = Convert.ToString(h.NoOfChild);
        }
    }
}